\hypertarget{classMain}{\section{Main Class Reference}
\label{classMain}\index{Main@{Main}}
}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static void \hyperlink{classMain_a8a5d0f827edddff706cc0e6740d0579a}{main} (String\mbox{[}$\,$\mbox{]} args)
\item 
static String \hyperlink{classMain_aa3fcece398096f72f69fcc4910c694f1}{hello} ()
\item 
static String \hyperlink{classMain_af82bc1d35282d82ba78bea4b64d327e9}{hail} (String name)
\item 
static String \hyperlink{classMain_ab755667431985084971e7cf91e0212e8}{good\-\_\-day} (int time)
\item 
static int \hyperlink{classMain_aaccf3e419d5a3e904ff68ed6d82731a5}{power} (int val)
\item 
static String \hyperlink{classMain_af910bff5118c8facbd0a464fed9aeb54}{print\-Grade} (double score)
\item 
static int \hyperlink{classMain_a3ac8265c18af700cf80bdca64b841530}{fibo\-\_\-\-Burak} (int n)
\item 
static int \hyperlink{classMain_ac3e4729d6daad5aa56b61a05a45f5885}{find\-Max} (int num1, int num2)
\item 
static String \hyperlink{classMain_a34507a29eaad4143d6b0a66bf24bb057}{poem} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Our City Cmpe 352 Spring '13 Project \hyperlink{classMain}{Main} class for execution. 

Definition at line 9 of file Main.\-java.



\subsection{Member Function Documentation}
\hypertarget{classMain_a3ac8265c18af700cf80bdca64b841530}{\index{Main@{Main}!fibo\-\_\-\-Burak@{fibo\-\_\-\-Burak}}
\index{fibo\-\_\-\-Burak@{fibo\-\_\-\-Burak}!Main@{Main}}
\subsubsection[{fibo\-\_\-\-Burak}]{\setlength{\rightskip}{0pt plus 5cm}static int Main.\-fibo\-\_\-\-Burak (
\begin{DoxyParamCaption}
\item[{int}]{n}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_a3ac8265c18af700cf80bdca64b841530}
Gives the nth number in Fibonacci series.


\begin{DoxyParams}{Parameters}
{\em n} & nth number of the series. \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Burak Sivrikaya 
\end{DoxyAuthor}


Definition at line 111 of file Main.\-java.


\begin{DoxyCode}
111                                            \{
112                 \textcolor{keywordtype}{int} result=0;
113                 \textcolor{keywordflow}{if}(n==1)
114                         result = 0;
115                 \textcolor{keywordflow}{else} \textcolor{keywordflow}{if}(n==2)
116                         result = 1;
117                 \textcolor{keywordflow}{else}\{
118                         \textcolor{keywordtype}{int} f1= 0; 
119                         \textcolor{keywordtype}{int} f2= 1;
120                         \textcolor{keywordflow}{for}(\textcolor{keywordtype}{int} i=3; i<=n;i++)\{
121                                 \textcolor{keywordtype}{int} temp = f1;
122                                 f1=f2;
123                                 f2=f1+temp;
124                         \}
125                         result = f2;
126                 \}
127                 \textcolor{keywordflow}{return} result;
128         \}
\end{DoxyCode}
\hypertarget{classMain_ac3e4729d6daad5aa56b61a05a45f5885}{\index{Main@{Main}!find\-Max@{find\-Max}}
\index{find\-Max@{find\-Max}!Main@{Main}}
\subsubsection[{find\-Max}]{\setlength{\rightskip}{0pt plus 5cm}static int Main.\-find\-Max (
\begin{DoxyParamCaption}
\item[{int}]{num1, }
\item[{int}]{num2}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_ac3e4729d6daad5aa56b61a05a45f5885}
Gives the max between two numbers


\begin{DoxyParams}{Parameters}
{\em num1} & first number \\
\hline
{\em num2} & second number \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Bahar Hilal Yuksel 
\end{DoxyAuthor}


Definition at line 138 of file Main.\-java.


\begin{DoxyCode}
138                                                          \{
139               \textcolor{keywordtype}{int} result;
140               \textcolor{keywordflow}{if} (num1 > num2)
141                  result = num1;
142               \textcolor{keywordflow}{else}
143                  result = num2;
144 
145               \textcolor{keywordflow}{return} result;
146            \}
\end{DoxyCode}
\hypertarget{classMain_ab755667431985084971e7cf91e0212e8}{\index{Main@{Main}!good\-\_\-day@{good\-\_\-day}}
\index{good\-\_\-day@{good\-\_\-day}!Main@{Main}}
\subsubsection[{good\-\_\-day}]{\setlength{\rightskip}{0pt plus 5cm}static String Main.\-good\-\_\-day (
\begin{DoxyParamCaption}
\item[{int}]{time}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_ab755667431985084971e7cf91e0212e8}
Says good day according to the time value.


\begin{DoxyParams}{Parameters}
{\em time} & integer time value between 0$<$=time$<$24 \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Pinar Kavak 
\end{DoxyAuthor}


Definition at line 54 of file Main.\-java.


\begin{DoxyCode}
54                                                 \{
55             String str = \textcolor{stringliteral}{""};
56             \textcolor{keywordflow}{if}(time>3&&time<=12)
57                 str = \textcolor{stringliteral}{"Good morning!"};
58             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if}(time>12&&time<=16)
59                 str = \textcolor{stringliteral}{"Good afternoon!"};
60             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if}(time>16&&time<22)
61                 str = \textcolor{stringliteral}{"Good evening!"};
62             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if}((time>=0&&time<=3)||(time>22&&time<24))
63                 str = \textcolor{stringliteral}{"Good night!"};
64             \textcolor{keywordflow}{else}
65                 str = \textcolor{stringliteral}{"This is not a valid time value!"};
66             \textcolor{keywordflow}{return} str;
67         \}
\end{DoxyCode}
\hypertarget{classMain_af82bc1d35282d82ba78bea4b64d327e9}{\index{Main@{Main}!hail@{hail}}
\index{hail@{hail}!Main@{Main}}
\subsubsection[{hail}]{\setlength{\rightskip}{0pt plus 5cm}static String Main.\-hail (
\begin{DoxyParamCaption}
\item[{String}]{name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_af82bc1d35282d82ba78bea4b64d327e9}
Hails given name in four languages\-: English, Turkish, French and Esperanto in order.


\begin{DoxyParams}{Parameters}
{\em name} & The name to be hailed. \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Mehmet Emre 
\end{DoxyAuthor}


Definition at line 44 of file Main.\-java.


\begin{DoxyCode}
44                                                \{
45             String str = \textcolor{stringliteral}{"Hello, "}+name+\textcolor{stringliteral}{"!\(\backslash\)nMerhaba, "}+name+\textcolor{stringliteral}{"!\(\backslash\)nSalut, "}+name+\textcolor{stringliteral}{"!\(\backslash\)nSaluton, "}+name+\textcolor{stringliteral}{"!\(\backslash\)n"};
46             \textcolor{keywordflow}{return} str;
47         \}
\end{DoxyCode}
\hypertarget{classMain_aa3fcece398096f72f69fcc4910c694f1}{\index{Main@{Main}!hello@{hello}}
\index{hello@{hello}!Main@{Main}}
\subsubsection[{hello}]{\setlength{\rightskip}{0pt plus 5cm}static String Main.\-hello (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_aa3fcece398096f72f69fcc4910c694f1}
\begin{DoxyAuthor}{Author}
Ismail Altuntas 
\end{DoxyAuthor}


Definition at line 32 of file Main.\-java.


\begin{DoxyCode}
32                                      \{
33             String str = \textcolor{stringliteral}{"Hello World!"};
34             \textcolor{keywordflow}{return} str;
35         \}
\end{DoxyCode}
\hypertarget{classMain_a8a5d0f827edddff706cc0e6740d0579a}{\index{Main@{Main}!main@{main}}
\index{main@{main}!Main@{Main}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}static void Main.\-main (
\begin{DoxyParamCaption}
\item[{String\mbox{[}$\,$\mbox{]}}]{args}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_a8a5d0f827edddff706cc0e6740d0579a}
\hyperlink{classMain}{Main} execution point of the program.


\begin{DoxyParams}{Parameters}
{\em args} & Command-\/line arguments \\
\hline
\end{DoxyParams}


Definition at line 16 of file Main.\-java.


\begin{DoxyCode}
16                                                \{
17                 \textcolor{comment}{// Call your own methods from here:}
18                 System.out.println(\hyperlink{classMain_af82bc1d35282d82ba78bea4b64d327e9}{hail}(\textcolor{stringliteral}{"Mehmet"}));
19                 System.out.println(\hyperlink{classMain_ab755667431985084971e7cf91e0212e8}{good\_day}(8));
20                 System.out.println(\hyperlink{classMain_aaccf3e419d5a3e904ff68ed6d82731a5}{power}(12));
21                 System.out.println(\hyperlink{classMain_a3ac8265c18af700cf80bdca64b841530}{fibo\_Burak}(10));
22                 System.out.println(\hyperlink{classMain_ac3e4729d6daad5aa56b61a05a45f5885}{findMax}(10, 11));
23                 System.out.println(\hyperlink{classMain_af910bff5118c8facbd0a464fed9aeb54}{printGrade}(96.4));
24                 System.out.println(\hyperlink{classMain_a34507a29eaad4143d6b0a66bf24bb057}{poem}());
25                 System.out.println(\hyperlink{classMain_aa3fcece398096f72f69fcc4910c694f1}{hello}());
26         \}
\end{DoxyCode}
\hypertarget{classMain_a34507a29eaad4143d6b0a66bf24bb057}{\index{Main@{Main}!poem@{poem}}
\index{poem@{poem}!Main@{Main}}
\subsubsection[{poem}]{\setlength{\rightskip}{0pt plus 5cm}static String Main.\-poem (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_a34507a29eaad4143d6b0a66bf24bb057}
It writes a poem of M.\-Akif Ersoy

\begin{DoxyAuthor}{Author}
Hakan Canoz 
\end{DoxyAuthor}


Definition at line 154 of file Main.\-java.


\begin{DoxyCode}
155                 \{
156                         \textcolor{keywordflow}{return} \textcolor{stringliteral}{"              RESSAM HAKLI\(\backslash\)n\(\backslash\)n"} +
157                                                            \textcolor{stringliteral}{"Bir zaman vardÃ„Â± ya tarih-i mukaddes
       modasÃ„Â±... \(\backslash\)n"} +
158                                                            \textcolor{stringliteral}{"Yeni yaptÃ„Â±rdÃ„Â±Ã„ÂŸÃ„Â± kÃƒÂ¶Ã…ÂŸkÃƒÂ¼n
       bÃƒÂ¼yÃƒÂ¼cek bir odasÃ„Â± \(\backslash\)n"} + 
159                                                            \textcolor{stringliteral}{"Mutfakta eski resimler ile hep sÃƒÂ¼slensin \(\backslash\)n"}
       + 
160                                                            \textcolor{stringliteral}{"Diye ressam aratÃ„Â±r hayli zaman bir zengin. 
      \(\backslash\)n"} + 
161                                                            \textcolor{stringliteral}{"Biri peyda olarak 'Ben yaparÃ„Â±m' der, kolunu 
      \(\backslash\)n"} + 
162                                                            \textcolor{stringliteral}{"SÃ„Â±vayÃ„Â±p akÃ…ÂŸama varmaz, sekiz
       arÃ…ÂŸÃ„Â±n salonu \(\backslash\)n"} + 
163                                                            \textcolor{stringliteral}{"SÃ„Â±var ama ne sÃ„Â±var...Sahibi der: \(\backslash\)n"} + 
164                                                            \textcolor{stringliteral}{"-Usta bu ne? \(\backslash\)n"} + 
165                                                        \textcolor{stringliteral}{"KÃ„Â±pkÃ„Â±zÃ„Â±l bir boya ÃƒÂ§ektin odanÃ„Â±n her
       yerine! .. \(\backslash\)n"} + 
166                                                            \textcolor{stringliteral}{"-Bu resim, askeri basmakta iken Firavun' un \(\backslash\)n"}
       + 
167                                                        \textcolor{stringliteral}{"KÃ„Â±zÃ„Â±l Deniz yarÃ„Â±lÃ„Â±p geÃƒÂ§mesidir Musa'
       nÃ„Â±n \(\backslash\)n"} + 
168                                                        \textcolor{stringliteral}{"-Hani Musa, be adam? \(\backslash\)n"} + 
169                                                        \textcolor{stringliteral}{"-ÃƒÂ‡Ã„Â±kmÃ„Â±Ã…ÂŸ efendim karaya \(\backslash\)n"} + 
170                                                        \textcolor{stringliteral}{"-Firavun nerde? \(\backslash\)n"} + 
171                                                        \textcolor{stringliteral}{"-BoÃ„ÂŸulmuÃ…ÂŸ. \(\backslash\)n"} + 
172                                                        \textcolor{stringliteral}{"-Ya bu kan rengi boya? \(\backslash\)n"} + 
173                                                        \textcolor{stringliteral}{"-KÃ„Â±zÃ„Â±l Deniz, a efendim yeÃ…ÂŸil olmaz ya bu
       da! \(\backslash\)n"} + 
174                                                        \textcolor{stringliteral}{"-ÃƒÂ‡ok gÃƒÂ¼zel levha imiÃ…ÂŸ, doÃ„ÂŸrusu
       Ã…ÂŸenlendi oda! .. \(\backslash\)n"};
175          \}
\end{DoxyCode}
\hypertarget{classMain_aaccf3e419d5a3e904ff68ed6d82731a5}{\index{Main@{Main}!power@{power}}
\index{power@{power}!Main@{Main}}
\subsubsection[{power}]{\setlength{\rightskip}{0pt plus 5cm}static int Main.\-power (
\begin{DoxyParamCaption}
\item[{int}]{val}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_aaccf3e419d5a3e904ff68ed6d82731a5}
Gives the 2nd power of a given integer


\begin{DoxyParams}{Parameters}
{\em val} & Integer value to be processed \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Ali Osman Bayrak 
\end{DoxyAuthor}


Definition at line 75 of file Main.\-java.


\begin{DoxyCode}
75                                          \{
76             \textcolor{keywordflow}{return} val*val;
77         \} 
\end{DoxyCode}
\hypertarget{classMain_af910bff5118c8facbd0a464fed9aeb54}{\index{Main@{Main}!print\-Grade@{print\-Grade}}
\index{print\-Grade@{print\-Grade}!Main@{Main}}
\subsubsection[{print\-Grade}]{\setlength{\rightskip}{0pt plus 5cm}static String Main.\-print\-Grade (
\begin{DoxyParamCaption}
\item[{double}]{score}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classMain_af910bff5118c8facbd0a464fed9aeb54}
Prints the letter grade of the given score


\begin{DoxyParams}{Parameters}
{\em Double} & score score to be graded \\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
Mehmet Orkun Uckunlar 
\end{DoxyAuthor}


Definition at line 85 of file Main.\-java.


\begin{DoxyCode}
85                                                       \{
86             String str = \textcolor{stringliteral}{""};
87             \textcolor{keywordflow}{if} (score >= 90.0) \{
88                 str = \textcolor{stringliteral}{"A"};
89             \}
90             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (score >= 80.0) \{
91                 str = \textcolor{stringliteral}{"B"};
92             \}
93             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (score >= 70.0) \{
94                 str = \textcolor{stringliteral}{"C"};
95             \}
96             \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (score >= 60.0) \{
97                 str = \textcolor{stringliteral}{"D"};
98             \}
99             \textcolor{keywordflow}{else} \{
100                 str = \textcolor{stringliteral}{"F"};
101             \}
102             \textcolor{keywordflow}{return} str;
103         \}
\end{DoxyCode}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/home/pinar/cmpesweng2013group7/src/\hyperlink{Main_8java}{Main.\-java}\end{DoxyCompactItemize}
